package org.project.utils;

/**
 * @Auther: hzy
 * @Date: 2022/4/15 19:57
 * @Description:
 */
public class ArraysUtils {

    public static Double[] processLine(String[] strings) {
        Double[] array = new Double[strings.length];
        int i = 0;
        for (String str : strings) {

            array[i] = Double.parseDouble(str.trim());//Exception in this line
            i++;
        }
        return array;
    }

    public static Integer[] processLineInt(String[] strings) {
        Integer[] array = new Integer[strings.length];
        int i = 0;
        for (String str : strings) {

            array[i] = Integer.parseInt(str.trim());//Exception in this line
            i++;
        }
        return array;
    }

}
